package com.yikome.purchase.entity;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

import org.springframework.data.annotation.CreatedBy;

import com.yikome.common.BaseEntity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@Getter
@NoArgsConstructor
@Entity
@Table(name = "p_pending_purchase" , indexes = {@Index(columnList="pendingPurchaseCode") , @Index(columnList="storehouseId")})
public class PendingPurchase extends BaseEntity {
	
	private static final long serialVersionUID = 268188014191297322L;

	private String pendingPurchaseCode ; 

	private Long storehouseId ;
	
	@CreatedBy
    private String createdBy;
}
